package com.kingdee.eas.jky.pmt.app;

import org.apache.log4j.Logger;

import com.kingdee.bos.BOSException;
import com.kingdee.bos.Context;
import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.eas.custom.DefineProjectFactory;
import com.kingdee.eas.custom.DefineProjectInfo;
import com.kingdee.eas.custom.IDefineProject;
import com.kingdee.eas.jky.enums.ProjectStateEnum;
import com.kingdee.eas.jky.pmt.ProjectZtApplyInfo;

public class ProjectZtApplyControllerBean extends AbstractProjectZtApplyControllerBean
{
    private static Logger logger =
        Logger.getLogger("com.kingdee.eas.jky.pmt.app.ProjectZtApplyControllerBean");
    protected void _audit(Context ctx, IObjectPK pk)throws BOSException, EASBizException
    {
         super._audit(ctx, pk);
         ProjectZtApplyInfo projectZtApplyInfo = (ProjectZtApplyInfo) this.getValue(ctx, pk);
         IDefineProject project =DefineProjectFactory.getLocalInstance(ctx);
         DefineProjectInfo  ProjectInfo=project.getDefineProjectInfo(new ObjectUuidPK(projectZtApplyInfo.getProjectNumber().getId()));
         ProjectInfo.setDefineState(ProjectStateEnum.zt);
         project.update(new ObjectUuidPK(ProjectInfo.getId()), ProjectInfo);
    }
    protected void _unAudit(Context ctx, IObjectPK pk)throws BOSException, EASBizException
    {
         super._unAudit(ctx, pk);
    }
    protected void _unAudit(Context ctx, IObjectPK[] pks)throws BOSException, EASBizException
    {
         super._unAudit(ctx, pks);
    }
    protected String _getBindingProperty(Context ctx)throws BOSException
    {
        return  super._getBindingProperty(ctx);
    }
}